package com.zhen.Service_2;

import com.zhen.Mapper.OtherMapper;
import com.zhen.User.Riqi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class Other implements others{
    @Autowired
    private OtherMapper otherMapper;
    public List<Riqi> riqi(){
        return otherMapper.selectrili();
    }
    public List<Riqi> class1(){
        return otherMapper.selectclass1();
    }
    public List<Riqi> class2(){
        return otherMapper.selectclass2();
    }
    public Integer insertclass1(Riqi riqi){
        return otherMapper.insertclass1(riqi);
    }
    public Integer insertclass2(Riqi riqi){
        return otherMapper.insertclass2(riqi);
    }
    public Integer insertriqi(Riqi riqi){
        return otherMapper.insertriqi(riqi);
    }
    public Integer delriqi(String riqi){
        return otherMapper.deleterili(riqi);
    }
    public Integer delclass1(String riqi){
        return otherMapper.deleteclass1(riqi);
    }
    public Integer delclass2(String riqi){
        return otherMapper.deleteclass2(riqi);
    }
}
